from django.db import models
from django.contrib.auth.models import AbstractUser

class UserInfo(AbstractUser):
    username = models.CharField(max_length=150, unique=True)
    password = models.CharField(max_length=100, unique=True)
    email = models.EmailField(max_length=254, unique=True, null=False, blank=False)
    attempt_count = models.IntegerField(default=0)  # 新增字段，用于记录尝试次数